/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.base;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.base.LoginPageMapper;
public class LoginPage extends BatisPage
{
    @Autowired(required=false)
	private LoginPageMapper mapper;
    /**
    桌面接口
    */
    
    public Map onload() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        TreeBean tb;
        
        
        
        Object has_toplinks =mapper.has_toplinks(params);
        result.put("has_toplinks", has_toplinks);
        
        
        SQLList<SQLMap> test_user=mapper.test_user(params);
        result.put("test_user", test_user);
        
        
        tb = createTreeBean("mvc_menu_treecols");
        tb.setPrefix("img");
        tb.setTableNodeUrl("url");
        SQLList<SQLMap> mvc_menu=mapper.mvc_menu(params);
        mvc_menu = mvc_menu.buildTree(tb,tb.getPid());
        result.put("mvc_menu", mvc_menu);
        
        return result;
    }
}